package com.example.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.filter.FormContentFilter;


@MapperScan("com.example.demo.mapper")
//@ComponentScan(basePackages = "com.example.demo")
@ServletComponentScan //开启Servlet组件支持
@EnableTransactionManagement //开启注解方式的事务管理
@Import( FormContentFilter.class )
@SpringBootApplication
public class DemoApplication {
    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class, args);
    }

}
